/****************************************************/
// Theme name: Nexus - Bootstrap Admin Template
// Theme URI: http://nexus.lethemes.net/1.0/html/
// Description: Nexus is a fully responsive admin dashboard template
// Tags: admin, admin dashboard, cms, crm, project managerment, responsive, webapp, backend, bootstrap admin, responsive admin
// Author: Loi Le
// Version: 1.0
/****************************************************/

function initialize() {

    // Simple map
    // --------------------------------------------------
    var simpleMapProp = {
        center: new google.maps.LatLng(34.052234, -118.243685),
        zoom: 10,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var simpleMap = new google.maps.Map(document.getElementById("simpleMap"), simpleMapProp);

    // Weather map
    // --------------------------------------------------
    var weatherMapProp = {
        zoom: 10,
        center: new google.maps.LatLng(34.052234, -118.243685)
    };
    var weatherMap = new google.maps.Map(document.getElementById('weatherMap'), weatherMapProp);
    var weatherLayer = new google.maps.weather.WeatherLayer({
        temperatureUnits: google.maps.weather.TemperatureUnit.FAHRENHEIT
    });
    weatherLayer.setMap(weatherMap);
    var cloudLayer = new google.maps.weather.CloudLayer();
    cloudLayer.setMap(weatherMap);

    // Traffic Map
    // --------------------------------------------------
    var trafficMapProp = {
        zoom: 10,
        center: new google.maps.LatLng(34.052234, -118.243685)
    }
    var trafficMap = new google.maps.Map(document.getElementById('trafficMap'), trafficMapProp);
    var trafficLayer = new google.maps.TrafficLayer();
    trafficLayer.setMap(trafficMap);

    // Transit Map
    // --------------------------------------------------
    var transitMapProp = {
        zoom: 10,
        center: new google.maps.LatLng(34.052234, -118.243685)
    }
    var transitMap = new google.maps.Map(document.getElementById('transitMap'), transitMapProp);
    var transitLayer = new google.maps.TransitLayer();
    transitLayer.setMap(transitMap);

    // Street View Map
    // --------------------------------------------------
    var panoMapProp = {
        position: new google.maps.LatLng(34.052234, -118.243685),
        addressControlOptions: {
            position: google.maps.ControlPosition.BOTTOM
        },
        linksControl: false,
        panControl: false,
        zoomControlOptions: {
            style: google.maps.ZoomControlStyle.SMALL
        },
        enableCloseButton: false
    };
    var panorama = new google.maps.StreetViewPanorama(document.getElementById('streetviewMap'), panoMapProp);
}
google.maps.event.addDomListener(window, 'load', initialize);